package cn.micro.system.manage.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 文件使用关联表
 * </p>
 *
 * @author wr
 * @since 2024-01-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AssetOdsFileRecordUseRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 文件使用关联主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 使用ID
     */
    private String useId;

    /**
     * 文件ID
     */
    private Long fileId;

    /**
     * 业务类型(0:用户信息，1：项目信息)
     */
    private Integer businessType;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    public static final String ID = "id";

    public static final String USE_ID = "use_id";

    public static final String FILE_ID = "file_id";

    public static final String BUSINESS_TYPE = "business_type";

    public static final String CREATE_TIME = "create_time";

}
